package com.ypf.controller;

import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@PreAuthorize("@ex.hasAuthority('system:dept:list1')")
public class TestController {
    @GetMapping("/test")
    public String test(){
        System.out.println("test ok!");
        return "test ok!";
    }
}
